For reference: https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing#main
You may also want to update to 3.2 RC2
I'm not sure how you'd specify a different behaviour based on which axis is stalling.
When doing tuning if you're worried about crashes, etc, you should probably reduce the motor current. Which is basically the same as stall protection because the motors will be more likely to stall before causing damage.
For conditional help, check the gcode meta commands forum.